Skip to content

Backport PR #43152 on branch 1.3.x (BUG: Outer/right merge with EA dtypes cast to object) #43389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

meeseeksmachine
Copy link
Contributor

Backport PR #43152: BUG: Outer/right merge with EA dtypes cast to object

@lumberbot-app lumberbot-app bot added this to the 1.3.3 milestone Sep 3, 2021
@lumberbot-app lumberbot-app bot added Bug ExtensionArray Extending pandas with custom dtypes or arrays. Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Sep 3, 2021
@debnathshoham
Copy link
Member

Is this because, maybe any_numeric_ea_dtype is not defined in 1.3.x?

([1], "left"),
],
)
def test_merge_EA_dtype(self, any_numeric_ea_dtype, how, expected_data):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep need to change this for 1.3.x

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I should make the change in this PR then, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes in this PR itself (as it targets the backport branch)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since I did not create this PR, not able to edit it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding this parametrisation definition should resolve this

@pytest.mark.parametrize(
    "any_numeric_ea_dtype",
    [
        "UInt8",
        "Int8",
        "UInt16",
        "Int16",
        "UInt32",
        "Int32",
        "UInt64",
        "Int64",
        "Float32",
        "Float64",
    ],
)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this any_nullable_numeric_dtype on 1.3.x?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! right, I see it here
But again would need help from maintainer to amend this PR.

@pep8speaks
Copy link

pep8speaks commented Sep 4, 2021

Hello @meeseeksmachine! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-09-04 18:47:28 UTC

@lithomas1
Copy link
Member

Rats. The line got too long when I updated the name in the web editor. I'll fix it if all other CI passes.

@lithomas1
Copy link
Member

@github-actions pre-commit

Copy link
Member

@lithomas1 lithomas1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests seem to pass. LGTM after the pre-commit bot does its thing.

@lithomas1 lithomas1 closed this Sep 4, 2021
@lithomas1 lithomas1 reopened this Sep 4, 2021
@jreback jreback merged commit e25acb9 into pandas-dev:1.3.x Sep 4, 2021
@jreback
Copy link
Contributor

jreback commented Sep 4, 2021

thanks @debnathshoham and @lithomas1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug ExtensionArray Extending pandas with custom dtypes or arrays. Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants